package org.hako.recite.word.tool;

/**
 * Detect yomi of kannji.
 * 
 * @since 0.4.14
 * @author <a href="mailto:xnnyygn@gmail.com">xnnyygn</a>
 */
public interface KannjiYomiDetector {

	/**
	 * Check if meet the condition
	 * 
	 * @param rawKannji
	 * @param rawYomi
	 * @param extractResult
	 * @return
	 */
	public boolean check(String rawKannji, String rawYomi,
			KannjiExtractResult extractResult);

	/**
	 * Detect kannji and yomi.
	 * 
	 * @param rawKannji
	 * @param rawYomi
	 * @param extractResult
	 * @return
	 */
	public KannjiYomiDetectResult detect(String rawKannji, String rawYomi,
			KannjiExtractResult extractResult);

}
